/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.herenit.beijing.poc.empi;

import org.openide.util.Lookup;
import org.openide.util.lookup.AbstractLookup;
import org.openide.util.lookup.InstanceContent;

/**
 *
 * @author Obama
 */
public class ServiceLookup extends AbstractLookup {

    private final static InstanceContent content = new InstanceContent();
    private static ServiceLookup lookup = new ServiceLookup(content);

    private ServiceLookup() {
    }

    private ServiceLookup(InstanceContent content) {
        super(content);
    }

    public void add(Object instance) {
        content.add(instance);
    }

    public void remove(Object instance) {
        content.remove(instance);
    }

    public static ServiceLookup getDefault() {
        return lookup;
    }
}
